import request from '../utils/request.js'

export function login(data) {
  return request({
    url: 'user/login',
    method: 'post',
	data
  })
}

export function register(data) {
  return request({
    url: 'user/register',
    method: 'post',
	data
  })
}

export function loginWeixin(code) {
  return request({
    url: 'user/loginWeixin/'+ code,
    method: 'get'
  })
}